package com.taotao.job.trigger.route;


import com.taotao.job.core.trigger.context.TriggerContext;

import java.util.List;

/**
 * 执行器路由
 *
 * @author fanbeibei
 * @version 1.0
 * @date 2021/2/3 17:05
 */
public interface ExecutorRouter {

    /**
     * 选择执行器地址
     *
     * @param context
     * @param addressList
     * @return
     */
    String route(TriggerContext context, List<String> addressList);

}
